import Layout from '@/pages/public/layout' // 公共部分

const website = [{
  path: '/site/website',
  component: Layout,
  children: [{
    path: 'info',
    component: () => import('@/pages/site/config/info.vue'),
    meta: {
      title: '站点配置-站点信息配置',
      permission: 'site.website.info'
    }
  }, {
    path: 'domain',
    component: () => import('@/pages/site/config/domain.vue'),
    meta: {
      title: '站点配置-域名设置',
      permission: 'site.website.domain'
    }
  }, {
    path: 'pc/template',
    component: () => import('@/pages/site/template/pc'),
    meta: {
      title: '站点配置-电脑端模板配置',
      permission: 'site.template.pc'
    }
  }, {
    path: 'pc/template/:id/config',
    component: () => import('@/pages/site/template/pc/config'),
    meta: {
      title: '站点配置-电脑端模板配置',
      permission: 'site.template.pc.config'
    }
  }, {
    path: 'h5/template',
    component: () => import('@/pages/site/template/h5'),
    meta: {
      title: '站点配置-手机端模板配置',
      permission: 'site.template.h5'
    }
  }, {
    path: 'h5/template/:id/config',
    component: () => import('@/pages/site/template/h5/config'),
    meta: {
      title: '站点配置-手机端模板配置',
      permission: 'site.template.h5.config'
    }
  }]
}]

export default website
